package com.woniuxy.controller;

import com.woniuxy.service.IAdminService;
import io.swagger.annotations.ApiOperation;
import com.woniuxy.pojo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName ChatController  在线聊天
 * @Description T0D0
 * @Author ykq11
 * @Date 2022/2/25 15:36
 * @Version 1.0
 **/
@RestController
@RequestMapping("/chat")
public class ChatController {
    @Autowired
    private IAdminService adminService;


    @ApiOperation(value = "获取所有操作员")
    @GetMapping("/admin")
    public List<Admin> getAdminList(String keywords){
        return adminService.getAdminList(keywords);
    }
}
